from WindPy import *
w.start()
w.isconnected()

## Step1:获取wind在交易中的期权合约的隐含波动率数据
error, data =w.wset("optioncontractbasicinfo","exchange=sse;windcode=510050.SH;status=trading;field=wind_code,exercise_date", usedf = True)
data['error']=error
data.to_csv('etf_data.csv',index=True)